package com.scwatch.ext.repository;

import com.scwatch.ext.domain.ClickRate;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * @author mafei
 * @Title: ShareClickRateDao
 * @ProjectName SCGC_CMS
 * @Description: TODO
 * @date 2018/9/2916:21
 */
public interface ShareClickRateDao extends Repository<ClickRate, Integer> {
    ClickRate save(ClickRate bean);

    ClickRate findOne(Integer id);

    @Query(value = "from ClickRate where 1=1")
    List<ClickRate> findAll();
}
